package im.javaer.cloud.demo2.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangzi
 * @version 1.0
 * @description 初始controller
 * @date 2019/10/28 10/28
 **/
@RestController
@Api(tags = "Demo2 测试")
public class DemoController {

    @RequestMapping(value = "demo", method = RequestMethod.GET)
    @ApiOperation("普通测试接口")
    public Map demo() {
        Map<String, Object> map = new HashMap<>();
        map.put("status", 200);
        map.put("msg", "操作成功");
        map.put("project", "demo2");
        return map;
    }

}
